const mongoose = require("./db");

const proSchema = new mongoose.Schema({
    // 设定的集合的结构
    proId: {type:String},
    proImg: {type:String},
    proName: {type:String},
    brand: {type:String},
    type: {type:String},
    logo: {type:String},
    price: {type:Number},
    sales: {type:Number},
    stock: {type:Number},
    score: {type:Number},
    discount: {type:Number},
    describe: {type:String},
    time: {type:Number}
})

module.exports = mongoose.model("pros", proSchema);

